<?php
// AMBIL 
#action get Kabupaten

include_once '../global.php';
$date = $_GET['date'];
$query = "select MILLx from QVQCINLINECONTROL where QCDATE='$date' group by MILLx order by MILLx";
$res = dbresultODBC($query);
$mills = array();
if ($res) {
    while ($mill = odbc_fetch_object($res)){
        $data = array(
            'id' => $mill->MILLx,
            'name' => $mill->MILLx
        );
        array_push($mills, $data);
    }
}
echo json_encode($mills);
?>